#ifndef WEATHERDATA_H
#define WEATHERDATA_H

#include <QString>

// 今日数据
class Today {
public:
    Today() {
        date = "2023-04-24";
        city = "南宁";
        ganmao = "感冒指数";
        wendu = 0;
        shidu = "0%";
        pm25 = 0;
        quality = "无数据";
        type = "多云";
        fl = "2级";
        fx = "南风";
        high = 30;
        low = 18;
    }

public:
    QString date;
    QString city;

    QString ganmao; //感冒指数

    int wendu; //温度
    QString shidu; //湿度
    int pm25; //PM2.5指数
    QString quality; //空气质量

    QString type; //天气类型 "晴天" "多云"...
    QString fx; //风向
    QString fl; //风力

    int high;
    int low;
};

// 近6天数据
class Day {
public:
    Day() {
        date = "2023-04-24";
        week = "周一";
        type = "多云";
        low = 0;
        high = 0;
        fx = "南风";
        fl = "二级";

        aqi = 0;
    }

public:
    QString date;
    QString week;
    QString type;

    int low;
    int high;

    QString fx;
    QString fl;

    int aqi; //空气质量

};

#endif // WEATHERDATA_H
